{include file="public/header" /}
<div class="layui-body">
    <!--tab标签-->
    <div class="layui-tab layui-tab-brief">
        <ul class="layui-tab-title">
            <li class=""><a href="{:url('admin/Goods/index')}">返回</a></li>
        </ul>
        <div class="layui-tab-content">
            <div class="layui-tab-item layui-show">
                    <form class="layui-form form-container" action="{:url('admin/Userinfo/updatem')}" method="post" enctype="multipart/form-data">
                        <input type="hidden" name="id" value="{$info['id']}">



                        <div class="layui-form-item">
                        <label class="layui-form-label">昵称</label>
                        <div class="layui-input-block">
                            <input type="text" name="user_name" value=""  class="layui-input">
                        </div>
                    </div>





                        <div class="layui-form-item">
                            <label class="layui-form-label">性别</label>
                            <div class="layui-input-block">
                                <select name="sex" >
                                    <option value="0">女</option>
                                    <option value="1">男</option>
                                </select>
                            </div>
                        </div>




                        <div class="layui-form-item">
                            <label class="layui-form-label">年龄</label>
                    <div class="layui-input-block">
                        <input type="text" name="age" value=""   class="layui-input">
                    </div>
                </div>

                        <div class="layui-form-item">
                            <label class="layui-form-label">用户头像</label>
                    <div class="layui-input-block">
                        <input type="file" name="image" value="" id="p"  class="layui-input" style="display: none">
                        <input type="button"  value="+上传头像+" onclick="chang()" class="layui-input">
                    </div>
                </div>
                <script>
                    function chang(){
                        document.getElementById("p").click();
                    }
                </script>







                       <div class="layui-form-item">
                        <label class="layui-form-label">关联用户ID</label>
                        <div class="layui-input-block">
                            <select name="address_id" >
                                {volist name="list" id="val"}
                                <option value="{$val.id}">{$val.phone}</option>
                                {/volist}
                            </select>
                        </div>
                    </div>




                        <div class="layui-form-item">
                        <label class="layui-form-label">用户余额</label>
                        <div class="layui-input-block">
                            <input type="text" name="money" value=""  class="layui-input">
                        </div>
                    </div>






                        <div class="layui-form-item">
                        <label class="layui-form-label">收藏商品信息</label>
                        <div class="layui-input-block">
                            <select name="goods_collect" >
                            {volist name="goods" id="val"}
                                <option value="{$val.id}">{$val.goods_name}</option>                            {/volist}
                                {/volist}
                             </select>
                        </div>
                    </div>







                        <div class="layui-form-item">
                        <label class="layui-form-label">收藏育儿知识</label>
                        <div class="layui-input-block">
                            <select name="re_collect" >

                                <option value="12">12</option>

                            </select>
                        </div>
                    </div>






                        <div class="layui-form-item">
                        <label class="layui-form-label">微信账号</label>
                        <div class="layui-input-block">
                            <input type="text" name="openid" value=""  class="layui-input">
                        </div>
                    </div>







                        <div class="layui-form-item">
                        <label class="layui-form-label">排序</label>
                        <div class="layui-input-block">
                            <input type="text" name="sort" value="1"  class="layui-input">
                        </div>
                    </div>





                    <div class="layui-form-item">
                        <div class="layui-input-block">
                            <input type="submit" class="layui-btn" value="保存数据">
                        </div>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>

{include file="public/footer" /}